﻿<!--  Copyright Microsoft Corporation -->
<!--  Author: Aravind Ramarathinam (aravr@microsoft.com) -->
 <UserControl x:Class="VmroleAuthor.Views.LoadBalancerConfigurationView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignWidth="900">
    <Grid VerticalAlignment="Top" ShowGridLines="False">
        <Grid.RowDefinitions>
            <RowDefinition Height="6" />
            <RowDefinition Height="Auto" />          
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />       
            <RowDefinition Height="Auto" />
            <RowDefinition MinHeight="30" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />        
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="6"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="6"/>
        </Grid.ColumnDefinitions>
   

        <!-- LoadBalancerConfigurationName -->
        <Label Grid.Row="1" Grid.Column ="0" >Configuration Name</Label>
        <ContentControl Grid.Row="1" Grid.Column="2" Content="{Binding Path=LoadBalancerConfigurationName}" />

        <!-- LoadBalancerFrontEndNetwork -->
        <Label Grid.Row="2" Grid.Column ="0" >FrontEnd Network</Label>
        <ContentControl Grid.Row="2" Grid.Column="2" Content="{Binding Path=LoadBalancerFrontEndNetwork}" />

        <!-- LoadBalancerPortConfigName -->
        <Label Grid.Row="3" Grid.Column ="0" >PortConfig Name</Label>
        <ContentControl Grid.Row="3" Grid.Column="2" Content="{Binding Path=LoadBalancerPortConfigName}" />

        <!-- LoadBalancerPortConfigProtocol -->
        <Label Grid.Row="4" Grid.Column ="0" >PortConfig Protocol</Label>
        <ContentControl Grid.Row="4" Grid.Column="2" Content="{Binding Path=LoadBalancerPortConfigProtocol}" />

        <!--LoadBalancerFrontEndPort -->
        <Label Grid.Row="5" Grid.Column ="0" >FrontEnd Port</Label>
        <ContentControl Grid.Row="5" Grid.Column="2" Content="{Binding Path=LoadBalancerFrontEndPort}" />

        <!--LoadBalancerBackEndPort -->
        <Label Grid.Row="6" Grid.Column ="0" >BackEnd Port</Label>
        <ContentControl Grid.Row="6" Grid.Column="2" Content="{Binding Path=LoadBalancerBackEndPort}" />

        <!-- LoadBalancerProbeEnabled -->
        <Label Grid.Row="7" Grid.Column ="0" >Probe Enabled?</Label>
        <CheckBox x:Name ="LoadBalancerProbeEnabled" Grid.Row="7" Grid.Column="2"   Style="{StaticResource ResourceKey=CheckBoxStyle}" IsChecked="{Binding LoadBalancerProbeEnabled, Mode=TwoWay, ValidatesOnDataErrors=True}" Validation.ErrorTemplate="{x:Null}"/>
        <ContentPresenter Grid.Row="8" Grid.Column="2" Content="{Binding ElementName=LoadBalancerProbeEnabled, Path=(Validation.Errors).CurrentItem}" />

        <!--LoadBalancerProbeIntervalInSeconds -->
        <Label Grid.Row="9" Grid.Column ="0" >Probe Interval (sec)</Label>
        <ContentControl Grid.Row="9" Grid.Column="2" Content="{Binding Path=LoadBalancerProbeIntervalInSeconds}" />

        <!--LoadBalancerProbeProtocol -->
        <Label Grid.Row="10" Grid.Column ="0" >Probe Protocol</Label>
        <ContentControl Grid.Row="10" Grid.Column="2" Content="{Binding Path=LoadBalancerProbeProtocol}" />

        <!--LoadBalancerProbePort -->
        <Label Grid.Row="11" Grid.Column ="0" >Probe Port</Label>
        <ContentControl Grid.Row="11" Grid.Column="2" Content="{Binding Path=LoadBalancerProbePort}" />

        <!--LoadBalancerProbeMaxRetryCount -->
        <Label Grid.Row="12" Grid.Column ="0" >Probe Max Retry Count</Label>
        <ContentControl Grid.Row="12" Grid.Column="2" Content="{Binding Path=LoadBalancerProbeMaxRetryCount}" />

        <!--LoadBalancerProbeRequestPath -->
        <Label Grid.Row="13" Grid.Column ="0" >Probe Request Path</Label>
        <ContentControl Grid.Row="13" Grid.Column="2" Content="{Binding Path=LoadBalancerProbeRequestPath}" />
    </Grid>
</UserControl>
